package com.wsx.sky.gateway.inner.dao;

import com.wsx.sky.gateway.inner.model.Dept;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.gateway.inner.dao.DeptMapper
 * @Description: TODO
 * @date 2018/12/07
 */
@Mapper
public interface DeptMapper {

    @Select("select deptno,name from dept where deptno = #{deptno}")
    Dept get(int deptno);

    @Insert("insert into `dept`(name) values(#{name})")
    int save(String name);
}
